

#ifndef   _UCTRANS_H
#define   _UCTRANS_H

#include "zrxnames.h"
#include "zaced.h"
#include "zdbptrar.h"
#include "zdbtrans.h"
#include "zacdocman.h"
#pragma pack (push, 8)

class UcTransactionManager: public UcDbTransactionManager 
{ 
public:
    UCRX_DECLARE_MEMBERS(UcTransactionManager);

    virtual Ucad::ErrorStatus   enableGraphicsFlush(bool doEnable) = 0;
    virtual void                flushGraphics() = 0; 
};

inline UcTransactionManager* ucTransactionManagerPtr()
{
	UcApDocument* pApDoc = ucDocManager->curDocument();
    return pApDoc ? pApDoc->transactionManager() : NULL;
}

#define uctrTransactionManager  ucTransactionManagerPtr()

#pragma pack (pop)
#endif
